#ifndef __HALSTORAGE_H__
#define __HALSTORAGE_H__

	extern UINT32 HalStorage_Init(UINT32 BaseAddr, UINT32 nSize);
	extern void *HalStorage_GetBuffer(void);
	extern void *HalStorage_GetSharedBuffer(UINT16 nNeedSize);
	extern UINT32 HalStorage_Read(UINT32 LBA, UINT16 nOffset, UINT16 nSize);
	extern UINT32 HalStorage_Write(UINT32 LBA, UINT16 nOffset, UINT16 nSize, UINT8 IsNeverBackup);
	extern UINT32 HalStorage_Write1PhyLBA(UINT32 PhyLBA, void *pBuffer);
	extern UINT32 HalStorage_PhyClear(UINT32 PhyLBA);
	extern UINT32 HalStorage_GetPhyLBSize(void);
	extern UINT32 HalStorage_GetLogLBSize(void);
	extern UINT32 HalStorage_GetMaxSize(void);

#endif
